#define _CRT_SECURE_NO_WARNINGS

#include <iostream>

class Date
{
public:
	Date(int year = 2023, int month = 11, int day = 1)
		:_year(year)		, _month(month)
		, _day(day)
		, _ref(day)
		, _num(100)
	{

	}

private:
	int _year;
	int _month;
	int _day;
	int& _ref;
	const int _num;
};

class Stack
{
public:
	Stack(int capacity)
		: _a((int*)malloc(sizeof(int) * capacity))
		, _capacity(capacity)
		, _top(0)
	{

	}

private:
	int* _a;
	int _capacity;
	int _top;

};

class MyQueue
{
public:
	MyQueue(int capacity = 10)
		: _st1(2)
		, _st2(capacity)
	{

	}

private:
	Stack _st1;
	Stack _st2;

};


int main()
{
	Date d1;

	Stack st1(10);

	MyQueue mq1;

	return 0;
}